package com.yuankeji.generator.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@ComponentScan(basePackages={"com.yuankeji.generator"})
@EnableTransactionManagement
@ServletComponentScan
@ImportResource(locations= { "classpath:spring-*.xml" })
@MapperScan("com.yuankeji.*.dao")
public class YuanGeneratorAdminApplication {

	public static void main(String[] args) {
		SpringApplication.run(YuanGeneratorAdminApplication.class, args);
		System.out.println("yuanGenerator has running....");
	}
}
